package dataaccess;

import java.util.List;

import model.Project;

public class ProjectDataAccess extends BaseDao {

	public static Project getById(Long projectid) {
		return getById(Project.class, projectid);
	}
	
	public static Long save(Project entity) {
		BaseDao.save(entity);
		return entity.getProjectId();
	}
	
	public static void update(Project entity) {
		BaseDao.update(entity);
	}
	
	public static List<Project> getAll(){
		return getAll(Project.class);
	}
	
	
	
	
}
